package abc.handler;

import org.springframework.core.io.Resource;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

public interface IPlayVideoHandler {
    /***
     * 播放视频
     * @param resource 文件流
     * @param exchange
     * @return 文件流
     * @throws Exception
     */
    Mono<Void> call(Resource resource, ServerWebExchange exchange);
}
